package com.own.core.html.panel.textField;

import java.lang.reflect.Field;


import org.apache.wicket.model.IModel;
 
import com.own.core.html.form.textField.OwnTextField;
import com.own.core.html.form.textField.TextField;
import com.own.core.html.panel.OwnDynPanel;
import com.own.util.model.OwnCompoundPropertyModel;

public class OwnTextFieldPan extends OwnDynPanel {
	 TextField textfield;
	public OwnTextFieldPan(IModel model, Field field, TextField textfield) {
		super(model, field);
		 this.textfield=textfield;
		OwnTextField ownTextField = new OwnTextField("textField",
				((OwnCompoundPropertyModel) model).bind(field.getName()),textfield);

		setFormComponent(ownTextField);
		draw();
	}

}
